package lk.icta.core.dao;

import lk.icta.core.entity.LeaseDetail;
import lk.icta.user.entity.User;

/**
 * @author Duminda Dharmakeerthi
 */
public interface LeaseDetailsDAO {

    /**
     * Add Lease Details of an alienation (Long Term Lease)
     *
     * @param leaseDetail
     * @param user
     */
    public void addLeaseDetails(LeaseDetail leaseDetail, User user);

    /**
     * Update Lease Details of an alienation (Long Term Lease)
     *
     * @param leaseDetail
     * @param user
     */
    public void updateLeaseDetails(LeaseDetail leaseDetail, User user);

    /**
     * Find a Lease Detail by id
     *
     * @param id
     * @param user
     * @return
     */
    public LeaseDetail getLeaseDetailById(long id, User user);
}
